<?php
class prepayclass {

	function prepayclass() {
		global $setupdata, $mysqlclass, $paymentclass;
		$this->setupdata=$setupdata;
		$this->mysqlclass=$mysqlclass;
		$this->paymentclass=$paymentclass;
	}

	function send_order_to_gateway($data, $post, $id, $p=""){
		$post_fields = "";
		print_r('
			<form name="payment" action="index.php?module=payment&gateway=prepay" method="post" target="_prepay">
			<input type="hidden" name="act" value="print_invoice">
			<input type="hidden" name="order_id" value="'.$post['order_id'].'">
			<input type="hidden" name="payment_id" value="'.$id.'">
			<input type="hidden" name="invoice_data" value="'.base64_encode(addslashes(serialize($p))).'">
			</form>
			<script language="javascript1.4" type="text/javascript">document.payment.submit();</script>
		');
	}

}
?>